package com.xbongbong.saas.service;


import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.script.pojo.dto.SyncUserToContactDTO;

/**
 * 同步数据到逍邦脚本
 *
 * @Author: hongxiao
 * @date: 2021-10-31 17:09
 */
public interface SyncDataToXbbService {

    /***
     * 缓存联系人信息
     *
     * @param: syncUserToContactDTO 入参
     * @throws
     * @return java.lang.String
     * @author hongxiao
     * @date 2021-10-31 21:06
     * @since
     * @version
     */
    BaseVO addContactRedis(SyncUserToContactDTO syncUserToContactDTO) throws XbbException;

    /***
     * 同步联系人脚本
     *
     * @param key
     * @throws
     * @return java.lang.String
     * @author hongxiao
     * @date 2021-10-31 21:06
     * @since
     * @version
     */
    String syncContactToXbb(String key);

}
